const express = require("express");
const router = express.Router();
const DriftModule = require("../../../api/Drift");
// 漂流瓶运维情况
router.get("/GetDriftObserver", (req, res) => {});
// 获取漂流瓶列表
router.get("/GetDriftList", (req, res) => {
  DriftModule.DriftList(req)
   .then((r) => res.send(r), (e) => res.send(e));
});
// 获取漂流瓶详情
router.get("/GetDriftDetail", (req, res) => {});
// 获取漂流瓶成员列表
router.get("/GetDriftMemberList", (req, res) => {
  DriftModule.DriftMemberList(req).then(
    (r) => res.send(r),
    (e) => res.send(e)
  );
});
// 写漂流瓶
router.post("/WriteDrift", (req, res) => {});
// 丢弃漂流瓶
router.post("/DiscardDrift", (req, res) => {})
// 修改漂流瓶
router.post("/UpdateDrift", (req, res) => {});
// 删除漂流瓶
router.post("/DeleteDrift", (req, res) => {
  DriftModule.DeleteDrift(req).then(
    (r) => res.send(r),
    (e) => res.send(e)
  );
});
module.exports = router;
